import { Component, OnInit } from '@angular/core';

@Component({
  selector: 'test-lifecycle-ng-content',
  templateUrl: './lifecycle-ng-content.component.html',
  styleUrls: ['./lifecycle-ng-content.component.scss']
})
export class LifecycleNgContentComponent implements OnInit {

  constructor() { }

  ngOnInit() {
  }

  ngAfterContentInit(){
    console.log("父层的ngAfterContentInit。。。");
  }
  ngAfterContentChecked(){
    console.log("父层的ngAfterContentChecked。。。");
  }
  ngAfterViewInit(){
    console.log("父层的ngAfterViewInit。。。");
  }
  ngAfterViewChecked(){
    console.log("父层的ngAfterViewChecked。。。");
  }

}
